import Vue from 'vue';
import { Button, Search, Swipe, SwipeItem,Icon,Tag,List,Cell,Grid,GridItem,DropdownMenu, DropdownItem,Empty,Toast,Tabbar, TabbarItem,Col, Row,Popup ,Form,Field,Dialog,GoodsAction,GoodsActionButton,GoodsActionIcon,Sku,Checkbox, CheckboxGroup,Card,SubmitBar,Stepper,SwipeCell,Lazyload} from 'vant';

Vue.use(Field);
Vue.use(Form);
Vue.use(Col);
Vue.use(Row);
Vue.use(Tabbar);
Vue.use(TabbarItem);
Vue.use(Popup);

Vue.use(Empty);

Vue.use(DropdownMenu);
Vue.use(DropdownItem);

Vue.use(List);
Vue.use(Cell);

Vue.use(Tag);
Vue.use(Icon);
Vue.use(Swipe);
Vue.use(SwipeItem);
Vue.use(Search);
Vue.use(Button);
Vue.use(Grid);
Vue.use(GridItem);
Vue.use(Toast);

Vue.use(Dialog);
Vue.use(GoodsAction);
Vue.use(GoodsActionButton);
Vue.use(GoodsActionIcon);

Vue.use(Sku);
Vue.use(Checkbox);
Vue.use(CheckboxGroup);
Vue.use(Card);

Vue.use(SubmitBar);
Vue.use(SwipeCell);
Vue.use(Stepper);
// 注册时可以配置额外的选项
Vue.use(Lazyload, {
    lazyComponent: true,  // 懒加载。
    loading:require("../assets/loading.gif")  // 当还没有加载完成图片的时候， 用一张默认加载图片来替换
});